package com.hue.springcloud.controller;

import com.hue.springcloud.utils.ProductIdUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SnowFlakeController {
    @Autowired
    private ProductIdUtils productIdUtils;

    @GetMapping("/getId")
    public String getId(){
        return productIdUtils.getId();
    }
}
